package com.caipin.domain;

import lombok.ToString;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2020-02-22 13:48
 * @Description: TODO
 */

@ToString
public class RegisterMessage {

    /**
     * devNumber : FLB0001
     * devName : GuangZhouLTE
     * typeModel : WDG10105
     * phoneNumber : 19925356
     * devPos : {"height":3.5,"longitude":0.01,"latitude":0.01}
     * devAddresss : SZ
     * mac : B4:4B:D6:53:67:BE
     * paMaxPower : 0
     * devType : 4
     * devConformation : 1
     * reconnectCause : 8
     * siteArea : 010101
     * timestamp : 1582278963
     */

    private String devNumber;
    private String devName;
    private String typeModel;
    private String phoneNumber;
    private DevPosBean devPos;
    private String devAddresss;
    private String mac;
    private int paMaxPower;
    private int devType;
    private int devConformation;
    private int reconnectCause;
    private String siteArea;
    private long timestamp;
    private String ip;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getDevNumber() {
        return devNumber;
    }

    public void setDevNumber(String devNumber) {
        this.devNumber = devNumber;
    }

    public String getDevName() {
        return devName;
    }

    public void setDevName(String devName) {
        this.devName = devName;
    }

    public String getTypeModel() {
        return typeModel;
    }

    public void setTypeModel(String typeModel) {
        this.typeModel = typeModel;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public DevPosBean getDevPos() {
        return devPos;
    }

    public void setDevPos(DevPosBean devPos) {
        this.devPos = devPos;
    }

    public String getDevAddresss() {
        return devAddresss;
    }

    public void setDevAddresss(String devAddresss) {
        this.devAddresss = devAddresss;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public int getPaMaxPower() {
        return paMaxPower;
    }

    public void setPaMaxPower(int paMaxPower) {
        this.paMaxPower = paMaxPower;
    }

    public int getDevType() {
        return devType;
    }

    public void setDevType(int devType) {
        this.devType = devType;
    }

    public int getDevConformation() {
        return devConformation;
    }

    public void setDevConformation(int devConformation) {
        this.devConformation = devConformation;
    }

    public int getReconnectCause() {
        return reconnectCause;
    }

    public void setReconnectCause(int reconnectCause) {
        this.reconnectCause = reconnectCause;
    }

    public String getSiteArea() {
        return siteArea;
    }

    public void setSiteArea(String siteArea) {
        this.siteArea = siteArea;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    @ToString
    public static class DevPosBean {
        /**
         * height : 3.5
         * longitude : 0.01
         * latitude : 0.01
         */

        private double height;
        private double longitude;
        private double latitude;

        public double getHeight() {
            return height;
        }

        public void setHeight(double height) {
            this.height = height;
        }

        public double getLongitude() {
            return longitude;
        }

        public void setLongitude(double longitude) {
            this.longitude = longitude;
        }

        public double getLatitude() {
            return latitude;
        }

        public void setLatitude(double latitude) {
            this.latitude = latitude;
        }
    }


}
